package model;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

/**
 * Deserealization of project
 * @Annot(name="Maxim" , description = "class for deserialization of objects")
 *
 */

public class des{
public static void main(String args[]) throws IOException, ClassNotFoundException {
	  FileInputStream fis = new FileInputStream("D:\\17.serialize");
	  ObjectInputStream oin = new ObjectInputStream(fis);
	  Storage ts = (Storage) oin.readObject();
	  System.out.println("id="+ts.getId());
	  System.out.println("workareaid="+ts.getWorkAreaId());
	  System.out.println("name="+ts.getName());
	  System.out.println("weight="+ts.getWeight());
	  System.out.println("x="+ts.getX());
	  System.out.println("y="+ts.getY());
	}}
